import request from "@/utils/request"
export function fetchLogin(data){
    return request ({
        url:'/user/login',
        method:"POST",
        data
    })
}
//登录成功后，得到token,拿着token获取用户信息
export function fetchUserInfo(){
    return request({
        url:'/user/info',
        method:'GET'
    })
}